package com.dty.model.base;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @note 最新动态接口业务实体
 * @user 86188
 * @date 2023/2/6
 */
@Data
@ApiModel(value = "栏目实体类")
public class ColumnModel implements Serializable {
    @ApiModelProperty(value = "Id")
    private Long  id;
    @ApiModelProperty(value = "发布人")
    private Integer userName;
    @ApiModelProperty(value = "标题")
    private String title;
    @ApiModelProperty(value = "摘要")
    private String abstractColumn;
    @ApiModelProperty(value = "封面图片")
    private String coverPicture;
    @ApiModelProperty(value = "公司名称")
    private String corporateName;
    @ApiModelProperty(value = "正文")
    private String contentText;
    @ApiModelProperty(value = "是否展示首页  1：是  0：否")
    private Integer show;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    @ApiModelProperty(value = "状态 0:发布  1:草稿")
    private Integer status;
    @ApiModelProperty(value = "类型  最新动态:1 采购动态:2 商情信息:3 招采政策:4 招采案例:5 物资信息:6")
    private Integer typeColumn;
    @ApiModelProperty(value = "是否可以评论  1：是  0：否")
    private String whetherClick;
    @ApiModelProperty(value = "阅读数量" ,required = false)
    private String readCount;
    @ApiModelProperty(value = "评论数量", required = false)
    private String clickCount;
    @ApiModelProperty(value = "下架  1上架  0下架")
    private Integer offShelf;

    @ApiModelProperty(value = "点赞总数 0未点赞，1点赞")
    private Integer spot;

}
